﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using WalkingTec.Mvvm.Core;

namespace MaiFangCrm.DataAccess
{
    public class KeHu : TopBasePoco
    {
        [Display(Name = "手机号码")]
        [Required(ErrorMessage = "手机号码是必填项")]
        [StringLength(11, ErrorMessage = "手机号码为11位")]
        [RegularExpression("/^[1][3,4,5,7,8][0-9]{9}$/", ErrorMessage = "手机号不正确")]
        public string PhoneNumber { get; set; }
        [Display(Name = "客户姓名")]
        [Required(ErrorMessage = "客户姓名是必填项")]
        public string Name { get; set; }
        [Display(Name = "性别")]
        [Required(ErrorMessage = "性别是必填项")]
        public Sex CustomerSex { get; set; }

    }
    public enum Sex
    {
        [Display(Name = "男")]
        男,
        [Display(Name = "女")]
        女
    }
}
